package com.ycz.config;/*
 @author ycz
 @date 2021-09-25-15:00  
*/



import org.springframework.context.annotation.Configuration;

import org.springframework.web.servlet.config.annotation.InterceptorRegistry;

import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
public class Config implements WebMvcConfigurer {

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new MyConfig())
                .addPathPatterns("/**")
                .excludePathPatterns("/assets/**","/css/**","/font-awesome/**"
                ,"/images/**","/js/**","/music/**",
                        "/toLogin/**",
                "/","/index","/user/login"
                );
    }

}
